home *** CD-ROM | disk | FTP | other *** search
- rem This program dials a Cermetek 1200 baud modem
-
- rem The Cermetek is not Hayes compatible.
-
- rem STR# ID=128 contains the current dialing program. To change, renumber the current #128; set the new ID to 128 (use Get Info with ResEdit).
-
- rem By Rich Brown.
-
- rem 5
-
- rem Version 1.0b1 November 1986
-
- rem 7
-
- rem This example uses each statement
-
- rem in the dialing language.
-
- goto 12
-
- display It is an error to display this message.
-
- display Cermetek Dialer V1.0B1
-
- count 3
-
- send
-
-
- receive 120 46
-
- if NUMBER 31
-
- loop
-
- display No response from modem.
- Check your cables, etc.
-
- goto 54
-
- rem (20) Send a command to modem.
-
- send ATE0
-
-
- count 4
-
- receive 75 10
-
- if ok 31
-
- loop
-
- rem (26) No response from Modem.
-
- display No response from modem.
- Check your cables, etc.
-
- goto 54
-
- rem (29)
-
- rem Modem responded, try dialing.
-
- display Dialing ...
-
- rem (31)
-
- dial
-
- send
-
-
- count 8
-
- receive 300 10
-
- if data mode 47
-
- if error 43
-
- if busy 45
-
- loop
-
- display Dialing Failed.
-
- goto 54
-
- display Error, try again.
-
- goto 54
-
- display Busy, try again.
-
- goto 54
-
- display Connected.
-
- rem Wait for NED to get ready (48)
-
- wait 120
-
- rem send
-
-
- rem receive 90 64
-
- stop 0
-
- rem error return (53)
-
- wait 180
-
- stop 1
-
-